package com.shkco.feign;

import com.shkco.domain.Store;
import com.shkco.utils.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "store-service",fallbackFactory = StoreServiceFallbackFactory.class)
@RequestMapping("/store")
public interface StoreService {

    @PostMapping("/add")
    AjaxResult add(@RequestBody Store store);
}
